package com.adnaan.restaurant.controller;

import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;

/**
 * author: adnaan
 * create: 2023-12-13 19:23
 * Description:
 */
public class BaseController {

    @Autowired
    private HttpServletRequest request;

    public Long getUserId() {
        return (Long) request.getAttribute("userId");
    }
}
